package com.booklove.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 捐赠书信息
 * </p>
 *
 * @author Z-ken
 * @since 2024/10/19 13:37:43
 */
@Getter
@Setter
@TableName("donatebookjudge")
public class Donatebookjudge implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("捐赠标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("捐赠发言")
    @TableField("recommend")
    private String recommend;


    @ApiModelProperty("捐赠状态-根据数据字典显示")
    @TableField("donate_state")
    private Integer donateState;

    @ApiModelProperty("受捐赠人")
    @TableField("revceived_user_id")
    private String revceivedUserId;

    @ApiModelProperty("捐赠人")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("捐赠地点")
    @TableField("address_id")
    private String addressId;

    @ApiModelProperty("此捐赠对应的书本Id")
    @TableField("book_id")
    private Integer bookId;

    @ApiModelProperty("捐赠书时间")
    @TableField("donate_time")
    private LocalDateTime donateTime;

    @ApiModelProperty("审核状态-对应judge种的result")
    @TableField("judge_state")
    private Integer judgeState;

    @ApiModelProperty("捐书id")
    @TableField("donate_book_id")
    private Integer donateBookId;

    @ApiModelProperty("创建人")
    @TableField("CREATED_BY")
    private Integer createdBy;

    @ApiModelProperty("创建时间")
    @TableField("CREATED_TIME")
    private LocalDateTime createdTime;

    @ApiModelProperty("更新人")
    @TableField("UPDATED_BY")
    private Integer updatedBy;

    @ApiModelProperty("更新时间")
    @TableField("UPDATED_TIME")
    private LocalDateTime updatedTime;
}
